(global.webpackJsonp = global.webpackJsonp || []).push([
  ["wjyk_recycle/pages/order-verification/order-verification"], {
    "01ad": function (t, o, a) {
      (function (n) {
        Object.defineProperty(o, "__esModule", {
          value: !0
        }), o.default = void 0;
        var r = t(a("4795")),
          i = t(a("5438"));

        function t(t) {
          return t && t.__esModule ? t : {
            default: t
          };
        }

        function s(t, e, n, r, i, c, o) {
          try {
            var a = t[c](o),
              s = a.value;
          } catch (t) {
            return n(t), 0;
          }
          a.done ? e(s) : Promise.resolve(s).then(r, i);
        }

        function c(a) {
          return function () {
            var t = this,
              o = arguments;
            return new Promise(function (e, n) {
              var r = a.apply(t, o);

              function i(t) {
                s(r, e, n, i, c, "next", t);
              }

              function c(t) {
                s(r, e, n, i, c, "throw", t);
              }
              i(void 0);
            });
          };
        }
        var e = {
          data: function () {
            return {
              pic_url: this.$imgUrl,
              displayFlag: "display: none;",
              orderid: "",
              orderInfo: {},
              options: {},
              unit: "",
              cateList: [],
              totlePrice: ""
            };
          },
          onShow: function () {
            i.default.releaseKey("submit");
          },
          onLoad: function (t) {
            this.options = t, this.orderid = t.scene, console.log("options", t), this.packOrderDetail(),
              this.systems();
          },
          methods: {
            changeInput: function (t) {
              if (1 != t.target.value.indexOf(".", t.target.value.length - 1)) {
                var e = t.currentTarget.dataset.index,
                  t = t.detail.value;
                this.cateList[e].number = Number(Number(t).toFixed(2));
                for (var n = 0; n < this.cateList.length; n++) 0 == n ? this.totlePrice = Number((Number(this.cateList[n].number) * Number(this.cateList[n].collector_price)).toFixed(2)) : this.totlePrice += Number((Number(this.cateList[n].number) * Number(this.cateList[n].collector_price)).toFixed(2));
                console.log("数量", this.totlePrice);
              }
            },
            reduce: function (t, e) {
              1 < t && (this.cateList[e].number = t - 1, this.totlePrice = (Number(this.totlePrice) - Number(this.cateList[e].collector_price)).toFixed(2)),
                console.log("点击减号", t, this.cateList[e], this.cateList);
            },
            add: function (t, e) {
              this.cateList[e].number = t + 1, this.totlePrice = (Number(this.totlePrice) + Number(this.cateList[e].collector_price)).toFixed(2),
                console.log("点击加号", t, this.cateList[e].number, (Number(this.totlePrice) + Number(this.cateList[e].collector_price)).toFixed(2), Number(this.totlePrice));
            },
            packVerification: function () {
              var e = this;
              return c(r.default.mark(function t() {
                return r.default.wrap(function (t) {
                  for (;;) switch (t.prev = t.next) {
                    case 0:
                      i.default.uniDoFunc({
                        key: "submit",
                        success: function () {
                          var t = c(r.default.mark(function t() {
                            return r.default.wrap(function (t) {
                              for (;;) switch (t.prev = t.next) {
                                case 0:
                                  i.default.lockKey("submit"), console.log("防抖... 在事件触发前连续点击事件会重新计时"), e.$http({
                                    url: e.$api.packVerification,
                                    data: {
                                      id: e.orderid,
                                      content: e.cateList,
                                      total: e.totlePrice,
                                      packid: e.options.packid
                                    }
                                  }).then(function (t) {
                                    console.log('11111111111111111')
                                    console.log("res11111111", t), 0 == t.errno ? (e.displayFlag = "display:block;",
                                      setTimeout(function () {
                                        i.default.releaseKey("submit"), n.navigateBack({
                                          url: "/wjyk_recycle/pages/pack-station-center/pack-station-center?packid=" + e.options.packid
                                        });
                                      }, 1e3)) : e.$sun.toast(t.message);
                                  }).catch(function (t) {
                                    console.log("res", t), n.showModal({
                                      title: "提示",
                                      showCancel: !1,
                                      content: t.data.message,
                                      success: function (t) {
                                        if (t.confirm) console.log("=========================="), i.default.releaseKey("submit"),
                                          n.navigateBack({
                                            url: "/wjyk_recycle/pages/pack-station-center/pack-station-center?packid=" + e.options.packid
                                          });
                                        else if (t.cancel) return;
                                      }
                                    });
                                  });

                                case 3:
                                case "end":
                                  return t.stop();
                              }
                            }, t);
                          }));
                          return function () {
                            return t.apply(this, arguments);
                          };
                        }()
                      });

                    case 1:
                    case "end":
                      return t.stop();
                  }
                }, t);
              }))();
            },
            packOrderDetail: function () {
              var n = this;
              return c(r.default.mark(function t() {
                var e;
                return r.default.wrap(function (t) {
                  for (;;) switch (t.prev = t.next) {
                    case 0:
                      return t.next = 2, n.$http({
                        url: n.$api.packOrderDetail,
                        data: {
                          id: n.orderid
                        }
                      });

                    case 2:
                      0 == (e = t.sent).errno && (n.orderInfo = e.data, n.cateList = e.data.content, n.totlePrice = e.data.collector_total,
                        console.log("打包订单详情", e, n.orderInfo, n.cateList));

                    case 4:
                    case "end":
                      return t.stop();
                  }
                }, t);
              }))();
            },
            systems: function () {
              var n = this;
              return c(r.default.mark(function t() {
                var e;
                return r.default.wrap(function (t) {
                  for (;;) switch (t.prev = t.next) {
                    case 0:
                      return t.next = 2, n.$http({
                        url: n.$api.system
                      });

                    case 2:
                      0 == (e = t.sent).errno && (console.log("系统设置", e), n.unit = e.data.recycle);

                    case 4:
                    case "end":
                      return t.stop();
                  }
                }, t);
              }))();
            }
          }
        };
        o.default = e;
      }).call(this, a("543d").default);
    },
    "0857": function (t, e, n) {
      function r() {
        this.$createElement, this._self._c;
      }
      var i = [];
      n.d(e, "b", function () {
        return r;
      }), n.d(e, "c", function () {
        return i;
      }), n.d(e, "a", function () {});
    },
    "11c7": function (t, e, n) {
      (function (t) {
        function e(t) {
          return t && t.__esModule ? t : {
            default: t
          };
        }
        n("8163"), e(n("66fd")), t(e(n("4a74")).default);
      }).call(this, n("543d").createPage);
    },
    2422: function (t, e, n) {
      n.r(e);
      var r, i = n("01ad"),
        c = n.n(i);
      for (r in i) "default" !== r && function (t) {
        n.d(e, t, function () {
          return i[t];
        });
      }(r);
      e.default = c.a;
    },
    "4a74": function (t, e, n) {
      n.r(e);
      var r, i = n("0857"),
        c = n("2422");
      for (r in c) "default" !== r && function (t) {
        n.d(e, t, function () {
          return c[t];
        });
      }(r);
      n("80a3");
      var o = n("f0c5"),
        i = Object(o.a)(c.default, i.b, i.c, !1, null, null, null, !1, i.a, void 0);
      e.default = i.exports;
    },
    "5ce2": function (t, e, n) {},
    "80a3": function (t, e, n) {
      var r = n("5ce2");
      n.n(r).a;
    }
  },
  [
    ["11c7", "common/runtime", "common/vendor"]
  ]
]);